﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E79 RID: 3705
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBuffRerollCallback : IMessage<RogueBuffRerollCallback>, IMessage, IEquatable<RogueBuffRerollCallback>, IDeepCloneable<RogueBuffRerollCallback>, IBufferMessage
	{
		// Token: 0x17002F02 RID: 12034
		// (get) Token: 0x0600A62C RID: 42540 RVA: 0x001BF373 File Offset: 0x001BD573
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBuffRerollCallback> Parser
		{
			get
			{
				return RogueBuffRerollCallback._parser;
			}
		}

		// Token: 0x17002F03 RID: 12035
		// (get) Token: 0x0600A62D RID: 42541 RVA: 0x001BF37A File Offset: 0x001BD57A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBuffRerollCallbackReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F04 RID: 12036
		// (get) Token: 0x0600A62E RID: 42542 RVA: 0x001BF38C File Offset: 0x001BD58C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBuffRerollCallback.Descriptor;
			}
		}

		// Token: 0x0600A62F RID: 42543 RVA: 0x001BF393 File Offset: 0x001BD593
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffRerollCallback()
		{
		}

		// Token: 0x0600A630 RID: 42544 RVA: 0x001BF39B File Offset: 0x001BD59B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffRerollCallback(RogueBuffRerollCallback other) : this()
		{
			this.buffSelectInfo_ = ((other.buffSelectInfo_ != null) ? other.buffSelectInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A631 RID: 42545 RVA: 0x001BF3D0 File Offset: 0x001BD5D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffRerollCallback Clone()
		{
			return new RogueBuffRerollCallback(this);
		}

		// Token: 0x17002F05 RID: 12037
		// (get) Token: 0x0600A632 RID: 42546 RVA: 0x001BF3D8 File Offset: 0x001BD5D8
		// (set) Token: 0x0600A633 RID: 42547 RVA: 0x001BF3E0 File Offset: 0x001BD5E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuffSelectInfo BuffSelectInfo
		{
			get
			{
				return this.buffSelectInfo_;
			}
			set
			{
				this.buffSelectInfo_ = value;
			}
		}

		// Token: 0x0600A634 RID: 42548 RVA: 0x001BF3E9 File Offset: 0x001BD5E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBuffRerollCallback);
		}

		// Token: 0x0600A635 RID: 42549 RVA: 0x001BF3F7 File Offset: 0x001BD5F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBuffRerollCallback other)
		{
			return other != null && (other == this || (object.Equals(this.BuffSelectInfo, other.BuffSelectInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A636 RID: 42550 RVA: 0x001BF42C File Offset: 0x001BD62C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.buffSelectInfo_ != null)
			{
				num ^= this.BuffSelectInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A637 RID: 42551 RVA: 0x001BF468 File Offset: 0x001BD668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A638 RID: 42552 RVA: 0x001BF470 File Offset: 0x001BD670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A639 RID: 42553 RVA: 0x001BF479 File Offset: 0x001BD679
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.buffSelectInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.BuffSelectInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A63A RID: 42554 RVA: 0x001BF4AC File Offset: 0x001BD6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.buffSelectInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BuffSelectInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A63B RID: 42555 RVA: 0x001BF4EC File Offset: 0x001BD6EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBuffRerollCallback other)
		{
			if (other == null)
			{
				return;
			}
			if (other.buffSelectInfo_ != null)
			{
				if (this.buffSelectInfo_ == null)
				{
					this.BuffSelectInfo = new RogueCommonBuffSelectInfo();
				}
				this.BuffSelectInfo.MergeFrom(other.BuffSelectInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A63C RID: 42556 RVA: 0x001BF540 File Offset: 0x001BD740
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A63D RID: 42557 RVA: 0x001BF54C File Offset: 0x001BD74C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 74U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.buffSelectInfo_ == null)
					{
						this.BuffSelectInfo = new RogueCommonBuffSelectInfo();
					}
					input.ReadMessage(this.BuffSelectInfo);
				}
			}
		}

		// Token: 0x04004380 RID: 17280
		private static readonly MessageParser<RogueBuffRerollCallback> _parser = new MessageParser<RogueBuffRerollCallback>(() => new RogueBuffRerollCallback());

		// Token: 0x04004381 RID: 17281
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004382 RID: 17282
		public const int BuffSelectInfoFieldNumber = 9;

		// Token: 0x04004383 RID: 17283
		private RogueCommonBuffSelectInfo buffSelectInfo_;
	}
}
